package com.shi.mapper;

import com.shi.entity.Type;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Author 史豪通
 * Date 2024/08/30 10:07
 */
@Mapper
public interface TypeMapper {
    int insertType(Type type);

    int deleteType(int id);

    int updateType(Type type);

    List<Type> selectParentType(int parentId);

    List<Type> selectChildTypeByParentId(int parentId);

    int changeTypeState(Type type);

    Type selectOneType(int id);

    List<Type> conditionSearch(Map<String, String> map);
}
